<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
    <%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
    <%@taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet"  href="/resource/css/bootstrap.css">
<script type="text/javascript" src="/resource/js/jquery-3.2.1.js" ></script>
<script type="text/javascript" src="/resource/js/bootstrap.min.js"></script>
<title>Insert title here</title>
</head>
<body>
<div>
<div>
<form action="/list.do" method="post">
类型:<input type="text" name="housetype">&nbsp;
姓名:<input type="text" name="name">&nbsp;
手机:<input type="text" name="phone">&nbsp;
房价:<input type="text" name="p1">至<input type="text" name="p2">&nbsp;<br>
备注:<input type="text" name="remark">&nbsp;
预定日期:<input type="date" name="d1">至<input type="date" name="d2">&nbsp;
<input type="submit" value="查询">
</form>
</div >
</div>
<table >
<tr>
<td>预定日期</td>
<td>姓名</td>
<td>手机</td>
<td>房型</td>
<td>房价</td>
<td>备注</td>
</tr>

<c:forEach items="${info.list}" var="user">
<tr>
<td> <fmt:formatDate value="${user.create}"/></td>
<td>${user.name }</td>
<td>${user.phone }</td>
<td>${user.house.housetype }</td>
<td>${user.house.houseprice }</td>
<td>${user.remark }</td>
</tr>
</c:forEach>
</table>
<jsp:include page="/WEB-INF/common/pages.jsp"></jsp:include>
</body>
<script type="text/javascript">
function goPage(pageNum){
	location="/list.do?pageNum="+pageNum;
}
</script>

</html>